(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0, XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0, cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Rewrite Strategy: FULL

(1) DecreasingLoopProof (EQUIVALENT transformation)

The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
from(mark(X)) →+ mark(from(X))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0].
The pumping substitution is [X / mark(X)].
The result substitution is [ ].

(2) BOUNDS(n^1, INF)

(3) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(4) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

S is empty.
Rewrite Strategy: FULL

(5) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(6) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

(7) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
active, cons, from, s, head, take, sel, 2nd, proper, top

They will be analysed ascendingly in the following order:
cons < active
from < active
s < active
head < active
take < active
sel < active
2nd < active
active < top
cons < proper
from < proper
s < proper
head < proper
take < proper
sel < proper
2nd < proper
proper < top

(8) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

The following defined symbols remain to be analysed:
cons, active, from, s, head, take, sel, 2nd, proper, top

They will be analysed ascendingly in the following order:
cons < active
from < active
s < active
head < active
take < active
sel < active
2nd < active
active < top
cons < proper
from < proper
s < proper
head < proper
take < proper
sel < proper
2nd < proper
proper < top

(9) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)

Induction Base:
cons(gen_mark:0':nil:ok3_0(+(1, 0)), gen_mark:0':nil:ok3_0(b))

Induction Step:
cons(gen_mark:0':nil:ok3_0(+(1, +(n5_0, 1))), gen_mark:0':nil:ok3_0(b)) →RΩ(1)
mark(cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b))) →IH
mark(*4_0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(10) Complex Obligation (BEST)

(11) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

The following defined symbols remain to be analysed:
from, active, s, head, take, sel, 2nd, proper, top

They will be analysed ascendingly in the following order:
from < active
s < active
head < active
take < active
sel < active
2nd < active
active < top
from < proper
s < proper
head < proper
take < proper
sel < proper
2nd < proper
proper < top

(12) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)

Induction Base:
from(gen_mark:0':nil:ok3_0(+(1, 0)))

Induction Step:
from(gen_mark:0':nil:ok3_0(+(1, +(n1058_0, 1)))) →RΩ(1)
mark(from(gen_mark:0':nil:ok3_0(+(1, n1058_0)))) →IH
mark(*4_0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(13) Complex Obligation (BEST)

(14) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

The following defined symbols remain to be analysed:
s, active, head, take, sel, 2nd, proper, top

They will be analysed ascendingly in the following order:
s < active
head < active
take < active
sel < active
2nd < active
active < top
s < proper
head < proper
take < proper
sel < proper
2nd < proper
proper < top

(15) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)

Induction Base:
s(gen_mark:0':nil:ok3_0(+(1, 0)))

Induction Step:
s(gen_mark:0':nil:ok3_0(+(1, +(n1604_0, 1)))) →RΩ(1)
mark(s(gen_mark:0':nil:ok3_0(+(1, n1604_0)))) →IH
mark(*4_0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(16) Complex Obligation (BEST)

(17) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

The following defined symbols remain to be analysed:
head, active, take, sel, 2nd, proper, top

They will be analysed ascendingly in the following order:
head < active
take < active
sel < active
2nd < active
active < top
head < proper
take < proper
sel < proper
2nd < proper
proper < top

(18) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)

Induction Base:
head(gen_mark:0':nil:ok3_0(+(1, 0)))

Induction Step:
head(gen_mark:0':nil:ok3_0(+(1, +(n2251_0, 1)))) →RΩ(1)
mark(head(gen_mark:0':nil:ok3_0(+(1, n2251_0)))) →IH
mark(*4_0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(19) Complex Obligation (BEST)

(20) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

The following defined symbols remain to be analysed:
take, active, sel, 2nd, proper, top

They will be analysed ascendingly in the following order:
take < active
sel < active
2nd < active
active < top
take < proper
sel < proper
2nd < proper
proper < top

(21) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
take(gen_mark:0':nil:ok3_0(+(1, n2999_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n29990)

Induction Base:
take(gen_mark:0':nil:ok3_0(+(1, 0)), gen_mark:0':nil:ok3_0(b))

Induction Step:
take(gen_mark:0':nil:ok3_0(+(1, +(n2999_0, 1))), gen_mark:0':nil:ok3_0(b)) →RΩ(1)
mark(take(gen_mark:0':nil:ok3_0(+(1, n2999_0)), gen_mark:0':nil:ok3_0(b))) →IH
mark(*4_0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(22) Complex Obligation (BEST)

(23) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)
take(gen_mark:0':nil:ok3_0(+(1, n2999_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n29990)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

The following defined symbols remain to be analysed:
sel, active, 2nd, proper, top

They will be analysed ascendingly in the following order:
sel < active
2nd < active
active < top
sel < proper
2nd < proper
proper < top

(24) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
sel(gen_mark:0':nil:ok3_0(+(1, n5173_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n51730)

Induction Base:
sel(gen_mark:0':nil:ok3_0(+(1, 0)), gen_mark:0':nil:ok3_0(b))

Induction Step:
sel(gen_mark:0':nil:ok3_0(+(1, +(n5173_0, 1))), gen_mark:0':nil:ok3_0(b)) →RΩ(1)
mark(sel(gen_mark:0':nil:ok3_0(+(1, n5173_0)), gen_mark:0':nil:ok3_0(b))) →IH
mark(*4_0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(25) Complex Obligation (BEST)

(26) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)
take(gen_mark:0':nil:ok3_0(+(1, n2999_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n29990)
sel(gen_mark:0':nil:ok3_0(+(1, n5173_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n51730)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

The following defined symbols remain to be analysed:
2nd, active, proper, top

They will be analysed ascendingly in the following order:
2nd < active
active < top
2nd < proper
proper < top

(27) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
2nd(gen_mark:0':nil:ok3_0(+(1, n7651_0))) → *4_0, rt ∈ Ω(n76510)

Induction Base:
2nd(gen_mark:0':nil:ok3_0(+(1, 0)))

Induction Step:
2nd(gen_mark:0':nil:ok3_0(+(1, +(n7651_0, 1)))) →RΩ(1)
mark(2nd(gen_mark:0':nil:ok3_0(+(1, n7651_0)))) →IH
mark(*4_0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(28) Complex Obligation (BEST)

(29) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)
take(gen_mark:0':nil:ok3_0(+(1, n2999_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n29990)
sel(gen_mark:0':nil:ok3_0(+(1, n5173_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n51730)
2nd(gen_mark:0':nil:ok3_0(+(1, n7651_0))) → *4_0, rt ∈ Ω(n76510)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

The following defined symbols remain to be analysed:
active, proper, top

They will be analysed ascendingly in the following order:
active < top
proper < top

(30) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol active.

(31) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)
take(gen_mark:0':nil:ok3_0(+(1, n2999_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n29990)
sel(gen_mark:0':nil:ok3_0(+(1, n5173_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n51730)
2nd(gen_mark:0':nil:ok3_0(+(1, n7651_0))) → *4_0, rt ∈ Ω(n76510)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

The following defined symbols remain to be analysed:
proper, top

They will be analysed ascendingly in the following order:
proper < top

(32) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol proper.

(33) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)
take(gen_mark:0':nil:ok3_0(+(1, n2999_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n29990)
sel(gen_mark:0':nil:ok3_0(+(1, n5173_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n51730)
2nd(gen_mark:0':nil:ok3_0(+(1, n7651_0))) → *4_0, rt ∈ Ω(n76510)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

The following defined symbols remain to be analysed:
top

(34) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol top.

(35) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)
take(gen_mark:0':nil:ok3_0(+(1, n2999_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n29990)
sel(gen_mark:0':nil:ok3_0(+(1, n5173_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n51730)
2nd(gen_mark:0':nil:ok3_0(+(1, n7651_0))) → *4_0, rt ∈ Ω(n76510)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

No more defined symbols left to analyse.

(36) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)

(37) BOUNDS(n^1, INF)

(38) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)
take(gen_mark:0':nil:ok3_0(+(1, n2999_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n29990)
sel(gen_mark:0':nil:ok3_0(+(1, n5173_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n51730)
2nd(gen_mark:0':nil:ok3_0(+(1, n7651_0))) → *4_0, rt ∈ Ω(n76510)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

No more defined symbols left to analyse.

(39) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)

(40) BOUNDS(n^1, INF)

(41) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)
take(gen_mark:0':nil:ok3_0(+(1, n2999_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n29990)
sel(gen_mark:0':nil:ok3_0(+(1, n5173_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n51730)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

No more defined symbols left to analyse.

(42) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)

(43) BOUNDS(n^1, INF)

(44) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)
take(gen_mark:0':nil:ok3_0(+(1, n2999_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n29990)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

No more defined symbols left to analyse.

(45) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)

(46) BOUNDS(n^1, INF)

(47) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)
head(gen_mark:0':nil:ok3_0(+(1, n2251_0))) → *4_0, rt ∈ Ω(n22510)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

No more defined symbols left to analyse.

(48) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)

(49) BOUNDS(n^1, INF)

(50) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)
s(gen_mark:0':nil:ok3_0(+(1, n1604_0))) → *4_0, rt ∈ Ω(n16040)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

No more defined symbols left to analyse.

(51) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)

(52) BOUNDS(n^1, INF)

(53) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)
from(gen_mark:0':nil:ok3_0(+(1, n1058_0))) → *4_0, rt ∈ Ω(n10580)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

No more defined symbols left to analyse.

(54) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)

(55) BOUNDS(n^1, INF)

(56) Obligation:

TRS:
Rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(head(cons(X, XS))) → mark(X)
active(2nd(cons(X, XS))) → mark(head(XS))
active(take(0', XS)) → mark(nil)
active(take(s(N), cons(X, XS))) → mark(cons(X, take(N, XS)))
active(sel(0', cons(X, XS))) → mark(X)
active(sel(s(N), cons(X, XS))) → mark(sel(N, XS))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(head(X)) → head(active(X))
active(2nd(X)) → 2nd(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
head(mark(X)) → mark(head(X))
2nd(mark(X)) → mark(2nd(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(head(X)) → head(proper(X))
proper(2nd(X)) → 2nd(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0') → ok(0')
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
head(ok(X)) → ok(head(X))
2nd(ok(X)) → ok(2nd(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Types:
active :: mark:0':nil:ok → mark:0':nil:ok
from :: mark:0':nil:ok → mark:0':nil:ok
mark :: mark:0':nil:ok → mark:0':nil:ok
cons :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
s :: mark:0':nil:ok → mark:0':nil:ok
head :: mark:0':nil:ok → mark:0':nil:ok
2nd :: mark:0':nil:ok → mark:0':nil:ok
take :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
0' :: mark:0':nil:ok
nil :: mark:0':nil:ok
sel :: mark:0':nil:ok → mark:0':nil:ok → mark:0':nil:ok
proper :: mark:0':nil:ok → mark:0':nil:ok
ok :: mark:0':nil:ok → mark:0':nil:ok
top :: mark:0':nil:ok → top
hole_mark:0':nil:ok1_0 :: mark:0':nil:ok
hole_top2_0 :: top
gen_mark:0':nil:ok3_0 :: Nat → mark:0':nil:ok

Lemmas:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)

Generator Equations:
gen_mark:0':nil:ok3_0(0) ⇔ 0'
gen_mark:0':nil:ok3_0(+(x, 1)) ⇔ mark(gen_mark:0':nil:ok3_0(x))

No more defined symbols left to analyse.

(57) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
cons(gen_mark:0':nil:ok3_0(+(1, n5_0)), gen_mark:0':nil:ok3_0(b)) → *4_0, rt ∈ Ω(n50)

(58) BOUNDS(n^1, INF)